package com.demo05.nio;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.nio.CharBuffer;

/**
 * @Author: root
 * @Date: 2018/11/24 13:25
 */
public class BufferTest1 {
    private static Logger log = LoggerFactory.getLogger(BufferTest1.class);

    public static void main(String[] args) {
        CharBuffer buffer = CharBuffer.allocate(8);
        log.info("buffer的容量：" + buffer.capacity());


    }
}
